package edu.sctu.zhoudie.mouth201505.day20150526.mymap;

import java.util.HashMap;

/**
 * Created by user08 on 2015/5/26.
 */
public class MyHashMap {



    public HashMap<Integer,Student> stringStudentHashMap (int size){

        HashMap<Integer,Student> hashMap = new HashMap<Integer,Student>();

        for (int i = 0; i < size ; i++) {
            Student student = new Student();

            student.number=1+i;
            student.name = "面麻"+i;
            student.grade = 79+i;

            hashMap.put(i,student);
    }
        return hashMap;
    }


}
